package hotgammon.domain;

import java.util.ArrayList;

public class FactorySemimon implements Factory {
	ArrayList<Integer> diceRoll;
	public FactorySemimon(ArrayList<Integer> diceRoll){
		this.diceRoll = diceRoll;
	}
	public FactorySemimon(){
		this.diceRoll = null;
	}
	public StrategyMove createMoveStrategy() {
		return new StrategyMoveBetamon();
	}
	public StrategyDice createDiceStrategy() {
		if(diceRoll == null)return new StrategyDiceRandom();
		else return new StrategyDiceStub(diceRoll);
	}
	public StrategyWinner createWinnerStrategy() {
		return new StrategyWinnerDeltamon();
	}
}
